package com.frank.oj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.frank.model.entity.common.Announcement;
import com.frank.oj.model.vo.AnnouncementVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author frank
 * @Date 2024/5/4
 */
@Mapper
public interface GroupAnnouncementMapper extends BaseMapper<Announcement> {
    List<AnnouncementVO> getAnnouncementList(IPage<AnnouncementVO> iPage, @Param("gid") Long gid);

    List<AnnouncementVO> getAdminAnnouncementList(@Param("iPage") IPage<AnnouncementVO> iPage, @Param("gid") Long gid);
}
